package com.qf.purchase.dao;

import com.qf.purchase.po.PurchaseOrder;
import com.qf.purchase.po.PurchaseOrderCount;

import java.util.List;
import java.util.Map;

public interface PurchaseOrderDao {
    int addPurchaseOrder(PurchaseOrder purchaseOrder);
    List<PurchaseOrder> getAllPurchaseOrderByPage(Map params);
    int updatePurchaseOrder(PurchaseOrder purchaseOrder);
    int delPurchaseOrder(String number);
    int delAllPurchaseOrderDetails(String number);
    PurchaseOrder findPurchaseOrderByNumber(String number);

    List<PurchaseOrderCount> getCountByPage(Map params);
    List<PurchaseOrderCount> getCount(Map params);
}
